﻿using DiffuseEnjoyIdle.Core.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace System.Linq
{
    /// <summary>
    /// 大于
    /// </summary>
    public sealed class ExpBuilderGreaterThan : ExpressionBuilder, IExpressionBuilder
    {
        public ExpBuilderGreaterThan()
        {
            base.OpType = Enum_ConditionType.Greater;
            base.EndKey = Enum_ConditionType.Greater.ToString();
        }

        protected override Expression GenExp(Expression left, Expression right)
        {
            return Expression.GreaterThan(left, right);
        }
    }
}